﻿@inherits Vowei.Web.G18nWebViewPage<Vowei.Web.Models.MilestoneProgress>
@using System.Web.Mvc.Html 
@using Vowei.Web.Helpers;

    <fieldset>
        <legend>@string.Format(T("里程碑：{0}"), Model.Milestone.Title) </legend>
        <div class="progressbar"></div>
        <div class="display-label">@T("总体进度：")
        @{
            Write(Model.TicketCount == 0 ? 0 : Model.ActiveTicketCount / Model.TicketCount);
        }</div>
    
        <div class="display-label">@T("剩余工作任务总数：")<a href="/Milestone/ActiveTickets/@Model.Milestone.ID">@Model.ActiveTicketCount</a></div>

        <div class="display-label">@string.Format(T("剩余工作量：{0}"), Model.LeftEffort)</div>
    
        <div class="display-label">@T("已完成工作任务总数：")<a href="/Milestone/ClosedTickets/@Model.Milestone.ID">@Model.ClosedTicketCount</a></div>

        <div class="display-label">@string.Format(T("已完成工作量：{0}"), Model.FinishedEffort)</div>
    
        <div class="display-label">@T("工作任务总数：")<a href="/Milestone/Tickets/@Model.Milestone.ID">@Model.TicketCount</a></div>
            
        @if (Model.Children.Count() > 0)
        {            
            foreach ( var child in Model.Children )
            {
                Html.RenderPartial("_TimelinePartial", child);
            }
        }
    </fieldset>